from DBcm import UseDatabase

dbconfig={'host':'10.6.152.100',
          'port':'7306',
          'user': 'root','password':'dev123','database':'test'}

with UseDatabase(dbconfig) as  cursor:
    _SQL = """ insert into log
            (phrase,letters,ip,browser_string, results)
            values(%s,%s,%s,%s,%s)"""
    cursor.execute(_SQL, ('wwh', 'xyz', '127.0.0.1', 'chrome', "{'x','y'}"))

